/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.packetserver;

import com.lineage.server.codes.Opcodes;

// Referenced classes of package com.lineage.server.packetserver:
// ServerBasePacket

public class S_SkillIconShield extends ServerBasePacket {

    /** 防御类状态图示:影之防护. */
    public static final int SHADOW_ARMOR = 3;
    /** 防御类状态图示:防护罩. */
    public static final int SHIELD = 5;
    /** 防御类状态图示:大地防护. */
    public static final int EARTH_SKIN = 6;
    /** 防御类状态图示:大地的祝福. */
    public static final int EARTH_BLESS = 7;
    /** 防御类状态图示:钢铁防护. */
    public static final int IRON_SKIN = 10;

    /**
     * 防御类状态图示.
     * 
     * @param type
     *            - 封包类型
     * @param time
     *            - 持续时间(单位:秒)
     */
    public S_SkillIconShield(final int type, final int time) {
        this.writeC(Opcodes.S_OPCODE_SKILLICONSHIELD);
        this.writeH(time);
        this.writeC(type);
        this.writeD(0);
    }

    @Override
    public byte[] getContent() {
        return this.getBytes();
    }
}
